import ajax from "./ajax/axios";

export default {
  user_login_log_list: function(data) {
    return ajax({
      url: "/log/user_login/list",
      method: "post",
      data: data
    });
  },
  user_login_log_delete: function(data) {
    return ajax({
      url: "/log/user_login/delete",
      method: "post",
      data: data
    });
  },
  user_login_log_download: function(data) {
    return ajax({
      url: "/log/user_login/download",
      method: "post",
      data: data,
      responseType: "blob"
    });
  },
  user_login_log_day_download: function(day) {
    return ajax({
      url: "/log/user_login/day/download?day=" + day,
      method: "get",
      responseType: "blob"
    });
  },
  user_operate_log_list: function(data) {
    return ajax({
      url: "/log/user_operate/list",
      method: "post",
      data: data
    });
  },
  user_operate_log_delete: function(data) {
    return ajax({
      url: "/log/user_operate/delete",
      method: "post",
      data: data
    });
  },
  user_operate_log_download: function(data) {
    return ajax({
      url: "/log/user_operate/download",
      method: "post",
      data: data,
      responseType: "blob"
    });
  },
  user_operate_log_day_download: function(day) {
    return ajax({
      url: "/log/user_operate/day/download?day=" + day,
      method: "get",
      responseType: "blob"
    });
  }
};
